//
//  PlayBar.h
//  ImGuider
//
//  Created by 王鹏宇 on 2017/6/2.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "IGAvPlayerManager.h"
#import "ProgressBtn.h"
@protocol playBarDelegate <NSObject>

@required
- (void)downloadStart;

- (void)downloadSuspend;

- (void)changePointTo:(NSInteger)index;// 切换播放音频对应的显示操作
@optional



@end
@interface PlayBar : UIView

//@property (nonatomic, copy) NSString * CurrentPointID;
//@property (nonatomic, copy) NSString * CurrentPlayIcon;
@property (nonatomic, strong) ProgressBtn * downloadBtn;
@property (nonatomic) CGFloat progressValue;
@property (nonatomic) CGFloat progressTrackValue;
@property (nonatomic) CGFloat downloadProgress;
@property (nonatomic) MCDownloadState downloadState;
@property (nonatomic, weak) id <playBarDelegate> delegate;
@property (nonatomic, strong)NSString * playPath;
@property (nonatomic, strong)LineModel *lineModel;
@property (nonatomic, strong)NSArray<ScenicPoint *>* pointsArray;

@property (nonatomic) NSInteger type;// 1城市导览，2景点

@property (nonatomic,assign)BOOL hideSequentialBtn;//城市导览  不要这个连续播放按钮


- (void)playMusicWithIndex:(NSInteger)index withIsPlay:(BOOL)isImmediately;
+ (instancetype)shareManeger;


@end
